#include <iostream>
#define N 1000

using namespace std;


int main(){

int array[N];
int i;
int n;
int poz[N];
int j=0;


cout<<"Type the number of elements you want in the array"<<endl;
cin>>n;
cout<<"Type the elements"<<endl;

for(i=0; i<n; i++){
	cin>>array[i];}

cout<<"The original array is ";

for(i=0; i<n; i++){
	cout<<array[i]<<" ";}
cout<<endl;

for(i=0;i<n; i++){
	if(array[i] > 0){
		poz[j]=array[i];
		j++;}
}

cout<<"The array only with positive numbers is:";
for(i=0;i<n; i++){
	if(poz[i]>0){
	cout<< poz[i]<<" ";}
}
cout<<endl;
return 0;
}
